package com.yuhao.common.strcount.entity;

public class Test1 {

    private int size;
    private int code;

    public static class Builder {
        private int size;
        private int code = 0;
        public Builder(int size) {
            this.size =  size;
        }
        public Builder code(int val) {
            code = val;
            return this;
        }
        public Test1 build() {
            return new Test1(this);
        }
    }

    private Test1(Builder builder) {
        size = builder.size;
        code =  builder.code;
    }
}
